﻿<Window x:Class="WpfAppCap1_L1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <DockPanel>
        <ToolBar Height="26" Name="toolbar1" DockPanel.Dock="Top" Width="200" HorizontalAlignment="Left" >
            <Button Click="Button_Click">Bold</Button>
            <Button Click="Button_Click_1">Italic
                <!--<Button.ContextMenu>
                    <ContextMenu>
                        <MenuItem>MenuItem</MenuItem>
                    </ContextMenu>
                </Button.ContextMenu>-->
            </Button>
            <Slider Name="slider1" Minimum="2" Maximum="72" Width="100" ValueChanged="slider1_ValueChanged" />
        </ToolBar>
        <Grid Name="grid1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100" />
                <ColumnDefinition Width="5" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <ListBox Name="listbox1" Grid.Column="0" SelectionChanged="listbox1_SelectionChanged">                
            </ListBox>
            <GridSplitter Name="gridsplitter1" Margin="0" Width="5"
                          Grid.Column="1" HorizontalAlignment="Left"/>
            <RichTextBox Name="richtxt1" Grid.Column="2" />
        </Grid>
    </DockPanel>
</Window>
